import request from '@/utils/request'

// 查询车位锁订单列表
export function listParkingOrder(query) {
  return request({
    url: '/business/parkingOrder/list',
    method: 'get',
    params: query
  })
}

// 查询车位锁订单详细
export function getParkingOrder(id) {
  return request({
    url: '/business/parkingOrder/' + id,
    method: 'get'
  })
}

// 新增车位锁订单
export function addParkingOrder(data) {
  return request({
    url: '/business/parkingOrder',
    method: 'post',
    data: data
  })
}

// 修改车位锁订单
export function updateParkingOrder(data) {
  return request({
    url: '/business/parkingOrder',
    method: 'put',
    data: data
  })
}

// 删除车位锁订单
export function delParkingOrder(id) {
  return request({
    url: '/business/parkingOrder/' + id,
    method: 'delete'
  })
}
